<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的调查</title>
</head>
<body>
	<%@ include file="header.jspf"%>
	<s:if test="mySurveys.isEmpty()==true">
		对不起，您还没有任何调查！
	</s:if>
	<s:else>
		<table border="1">
			<tr>
				<td colspan="10" style="height: 5px"></td>
			</tr>
			<tr>
				<td colspan="10">我的调查</td>
			</tr>
			<tr>
				<td colspan="10" style="height: 5px"></td>
			</tr>
			<tr>
				<td>ID</td>
				<td>调查标题</td>
				<td>创建时间</td>
				<td>状态</td>
				<td>设计</td>
				<td>收集信息</td>
				<td>分析</td>
				<td>打开/关闭</td>
				<td>清除调查</td>
				<td>删除</td>
			</tr>
			<s:iterator value="mySurveys">
				<s:set var="sid" value="id" />
				<tr>
					<td><s:property value="title" /></td>
					<td><s:a action="surveyAction_toLogoPage?sid=%{#sid}" namespace="/">上传Logo</s:a></td>
					<td><s:date name="createDate" format="MM/dd/yy HH:mm" /></td>
					<td><s:a action="surveyAction_editSurvey?sid=%{#sid}"
							namespace="/">编辑</s:a></td>
					<td><s:a action="surveyAction_designSurvey?sid=%{#sid}"
							namespace="/">设计</s:a></td>
					<td>收集信息</td>
					<td>分析</td>
					<td><s:a action="surveyAction_toggleSurvey?sid=%{#sid}">
							<s:if test="closed==true">打开</s:if>
							<s:else>关闭</s:else>
						</s:a></td>
					<td><s:a action="surveyAction_clearSurvey?sid=%{#sid}"
							namespace="/">清除调查</s:a></td>
					<td><s:a action="surveyAction_deleteSurvey?sid=%{#sid}"
							namespace="/">删除</s:a></td>
				</tr>
			</s:iterator>
		</table>
	</s:else>
</body>
</html>